home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
g_quake
/
flames.zip
/
FLAME.QC
< prev
next >
Wrap
Text File
|
1996-09-24
|
3KB
|
125 lines
void() Flame_Ignite;
void() flame_extinguish;
void() StartFlame =
{
Flame_Ignite();
remove(self);
};
void() flame_spread =
{
// dprint("flame_spread ..\n");
local float rand;
if (pointcontents(self.origin) == CONTENT_WATER)
flame_extinguish();
rand = random();
if (rand < 0.5)
{
self.think = flame_extinguish;
self.nextthink = time + 5;
Flame_Ignite();
}
else
{
self.think = flame_extinguish;
self.nextthink = time + 0.5;
}
};
void() flame_extinguish =
{
// dprint("flame_extinguish ..\n");
remove(self);
};
void() flame_touch =
{
self.solid = SOLID_TRIGGER;
if (other.takedamage)
{
T_Damage (other, self, self, 5);
if (other.classname == "player")
{
sprint(other, "Ouch Ouch Ouch Ouch Ouch!\n");
}
}
};
void() Flame_Ignite =
{
local entity flame;
flame = spawn();
flame.owner = self.owner;
flame.movetype = MOVETYPE_TOSS;
flame.solid = SOLID_TRIGGER;
flame.classname = "flame";
flame.effects = EF_DIMLIGHT;
flame.touch = flame_touch;
flame.nextthink = time + 2.5;
flame.think = flame_spread;
setmodel (flame, "progs/flame2.mdl");
setsize (flame, '0 0 0', '25 25 50');
// setorigin (flame, self.origin );
flame.origin_x = (self.origin_x + (random() * 50) - 25);
flame.origin_y = (self.origin_y + (random() * 50) - 25);
flame.origin_z = self.origin_z;
flame.velocity_x = ((random() * 20) - 40);
flame.velocity_y = ((random() * 20) - 40);
flame.velocity_z = 300;
// dprint ("Flame_Ignite @ ");
// dprint (vtos(flame.origin));
// dprint ("\n");
};
void() PlugMe =
{
dprint("=====================================\n");
dprint("= This server is running... =\n");
dprint("= FLAMES for Quake 1.01 =\n");
dprint("= by Dr_Tyrell of Necessary Evil =\n");
dprint("= (c)opyright T Rowley 1996 =\n");
dprint("= This is version RELEASE 1.0 =\n");
dprint("= lemme know with comments, ideas =\n");
dprint("= and bugs =\n");
dprint("= tristan@justche.demon.co.uk =\n");
dprint("=====================================\n");
};
void() PlugSelf =
{
sprint(self, "=====================================\n");
sprint(self, "= This server is running... =\n");
sprint(self, "= FLAMES for Quake 1.01 =\n");
sprint(self, "= by Dr_Tyrell of Necessary Evil =\n");
sprint(self, "= (c)opyright T Rowley 1996 =\n");
sprint(self, "= This is version RELEASE 1.0 =\n");
sprint(self, "= lemme know with comments, ideas =\n");
sprint(self, "= and bugs =\n");
sprint(self, "= tristan@justche.demon.co.uk =\n");
sprint(self, "=====================================\n");
PlugFlare();
};